<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		<meta name="format-detection" content="telephone=no" />
		<meta name="format-detection" content="email=no" />
		<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'>

		<meta name='apple-mobile-web-app-capable' content='yes'>
		<meta name='apple-mobile-web-app-status-bar-style' content='black'>
		<meta name='format-detection' content='telephone=no'>
		<style type='text/css'>
			img {
				width: 100%
			}
		</style>
		<table style="width:100%;font-size:1.1em">

			<title>八角游戏演示</title>`
			<script src="js/bowser.min.js" type="text/javascript"></script>
			<script>

				function myFunction(){
				if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
					handleFontSize();
				} else {
					if (document.addEventListener) {
						document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
					} else if (document.attachEvent) {
						document.attachEvent("WeixinJSBridgeReady", handleFontSize);
						document.attachEvent("onWeixinJSBridgeReady", handleFontSize);  }
				}
				function handleFontSize() {
					// 设置网页字体为默认大小
					WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
					// 重写设置网页字体大小的事件
					WeixinJSBridge.on('menu:setfont', function() {
						WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
					});
				}
			}

			window.onload = function(){
		if(location.search.indexOf("?")==-1){
      location.href += "?myurl";
   }
   else{
      if(location.search.indexOf("myurl")==-1) location.href += "&myurl";
   }
}

			var iPhone = bowser.name;
        if (iPhone = 'iPhone') {

            var meta = document.createElement("meta");
            var head = document.getElementsByTagName("head")[0];
            head.insertBefore(meta, head.childNodes[0]);
            meta.setAttribute("name", "viewport");
            meta.setAttribute("content", "width=device-width, initial-scale=1, user-scalable=0, minimum-scale=1, maximum-scale=1");
		}
		//浏览器缩放控制
		// webview.getWebSetting().setTextZoom(100);

		//安卓微信设置最大字体限制页面字体
		(function() {
    if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
        handleFontSize();
    } else {
        if (document.addEventListener) {
            document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
        } else if (document.attachEvent) {
            document.attachEvent("WeixinJSBridgeReady", handleFontSize);
            document.attachEvent("onWeixinJSBridgeReady", handleFontSize);  }
    }
    function handleFontSize() {
        // 设置网页字体为默认大小
        WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
        // 重写设置网页字体大小的事件
        WeixinJSBridge.on('menu:setfont', function() {
            WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
        });
    }
})();

//浏览器设置字体大小,使页面字体不受影响
(function(doc, win) {
//      用原生方法获取用户设置的浏览器的字体大小(兼容ie)
        // if(doc.documentElement.currentStyle) {
        //     var user_webset_font=doc.documentElement.currentStyle['fontSize'];
        // }
        // else {
        //     var user_webset_font=getComputedStyle(doc.documentElement,false)['fontSize'];
        // }
 
//      取整后与默认16px的比例系数
        var xs=parseFloat(user_webset_font)/16;
//      设置rem的js设置的字体大小
        var view_jsset_font,result_font;
         
        var docEl = doc.documentElement,
        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
        clientWidth,
        recalc = function() {
            clientWidth = docEl.clientWidth;
            if(!clientWidth) return;
            if(!doc.addEventListener) return;
            if(clientWidth<750){
//              设置rem的js设置的字体大小
                view_jsset_font=100 * (clientWidth / 750);
//              最终的字体大小为rem字体/系数
                result_font=view_jsset_font/xs;
//              设置根字体大小
                docEl.style.fontSize = result_font + 'px';
                }
            else{
                docEl.style.fontSize = 100 + 'px';
                }
        };
             
    win.addEventListener(resizeEvt, recalc, false);
    doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);

		 
	</script>
			<style>
				body {
					/* IOS禁止微信调整字体大小 */
					-webkit-text-size-adjust: 100% !important;
					text-size-adjust: 100% !important;
					-moz-text-size-adjust: 100% !important;
				}
			</style>

			<link rel="stylesheet" type="text/css" href="css/global.css">
			<link rel="stylesheet" type="text/css" href="css/system.css">
			<link rel="stylesheet" type="text/css" href="css/index.css">


	</head>

	<body onload="myFunction()">
		<div class="phone">
			<div class="all" style="position: relative;padding-top: 10px;" id="all1">
				<div class="select">
					<img src="img/icon_xiangmu.png">
					<p>八角游戏</p>
				</div>
				<div class="newneirong">
					<div class="active" style="width: 98.2%;">
						<a href="http://sungkt.gitee.io/play_plane/">
							<p class="title">飞机合成</p>
							<p class="describe">飞机合成，高级分红</p>
							<img src="img/synthesisPlane/01.png" style="padding-left: 5%; width: 90%;height=auto" />
						</a>
					</div>
					<!-- <div class="active" style="width: 98.2%;">
						<a href="http://sungkt.gitee.io/play_plane/">
							<p class="title">飞机合成</p>
							<p class="describe">飞机合成，高级分红</p>
							<img src="img/synthesisPlane/01.png" style="padding-left: 5%; width: 90%;height=auto" />
						</a>
					</div> -->
				</div>


				<!-- 	<div class="newneirong">
					<div class="active" style="width: 98.2%;">
						<a href="xinzhaizi_detail.html">
							<img src="img/pic/pic_cishanhui1.png" />
							<p class="title" id="yiliao" name="yiliao">辛寨子慈善</p>
							<p class="describe">辛寨子各社区参与的慈善捐赠项目，项目包含微信公众平台和app端。</p>
						</a>
					</div>
				</div> -->
			</div>
		</div>
		<!-- <div class="more" onclick="morelast()" id="more1">点击加载更多</div> -->
		</div>
		<script>
			var _mtac = {};
			(function() {

				if (!(navigator.userAgent.match(
						/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
					))) {
					window.location.href = "./index.html";
				}

				var mta = document.createElement("script");
				mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
				mta.setAttribute("name", "MTAH5");
				mta.setAttribute("sid", "500665694");
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(mta, s);
			})();


			function back() {
				window.history.back();
			}
		</script>
	</body>

</html>
